package com.xl.utils.util.测试private是否能被继承;

/**
 * @author xionglin
 * @date 2021/7/12 23:17
 * @Description 父类
 */
public class Father {
    //身高
    private double height;
    //爱好
    private String hobby;

    private void running(){
        System.out.println("喜欢跑步");
    }
    void fishing(){
        System.out.println("喜欢钓鱼");
    }
}
